package cn.jilian.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.DiscriminatorColumn;
import javax.persistence.DiscriminatorType;
import javax.persistence.Entity;
import javax.persistence.Table;

import cn.jilian.entity.AbstractEntity;


@Entity
@Table(name="dt_order_item")
@DiscriminatorColumn(name="meta",discriminatorType=DiscriminatorType.INTEGER)
public class OrderItem  extends AbstractEntity{
	
	public static final Integer RANK=210622;

	/**
	 * 直升电梯类订单项目
	 * */ 
	public static final String ELE_META="539255";

	/**
	 * 扶梯与人行道类货源订单项目
	 * */ 
	public static final String ESC_META="539272";

	public OrderItem() {
		setRank(RANK);
	}
	
	@Column(name="rid")
	private Long rid;
	
	/**
	 * 产品编号
	 * */
	@Column(name="code")
	private String code;
	
	@Column(name="num")
	private Integer num;
	
	@Column(name="flag")
	private Integer flag=1;
	
	@Column(name="tims")
	private Date tims=new Date();
	
	@Column(name="rank")
	private Integer rank=RANK;
	
	

	public Integer getFlag() {
		return flag;
	}

	public void setFlag(Integer flag) {
		this.flag = flag;
	}

	public Date getTims() {
		return tims;
	}

	public void setTims(Date tims) {
		this.tims = tims;
	}

	public Integer getRank() {
		return rank;
	}

	public void setRank(Integer rank) {
		this.rank = rank;
	}


	public Long getRid() {
		return rid;
	}

	public void setRid(Long rid) {
		this.rid = rid;
	}

	public Integer getNum() {
		return num;
	}

	public void setNum(Integer num) {
		this.num = num;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}
	
	
}
